/*
 * @Author       : xuett
 * @Date         : 2024-05-29 15:59
 * @LastEditors  : xxdlhxue@163.com
 * @LastEditTime : 2024-06-04 15:08
 * @Description  :
 */
import http from "../utils/http.js";
// const service = "";
export default {
  // 类型列表查询
  getTypeList: (data) => http.get(`/type`, data),
  // ***********************题目*********************
  // 列表查询
  getProblemList: (data) => http.get(`/problem`, data),
  // 新增
  addProblem: (data) => http.post(`/problem`, data),
  // 查询
  getProblem: (id) => http.get(`/problem/${id}`),
  //更新
  updateProblem: (data) => http.patch(`/problem/${data.id}`, data),
  //删除
  delProblem: (id) => http.delete(`/problem/${id}`)
};
